package com.whut.dao;

import java.util.List;

import org.hibernate.mapping.Map;

import com.whut.model.User;
import com.whut.vo.UserRegisterInfo;


public interface UserDao {
   public void save(User u);
   public void save(UserRegisterInfo info);
   public boolean checkUserWithName(String username);
   public boolean checkUser(String username,String password);
   public List<User> getUsers();
   
   public void addLoginTimes(User u);  
  
  
   public int checkPriority(User u);
  
   public abstract List findByPage(final String hql, final int offset, final int pageSize);
   public abstract Long count(String hql) throws Exception;
   
   public void update(Object o) throws Exception;
   public void delete(Object o) throws Exception;
   public List<User> find(int id);
}
